Scroll to navigation

std::ranges::concat_view::iterator::operator[](3) C++ Standard Libary std::ranges::concat_view::iterator::operator[](3)

NAME

std::ranges::concat_view::iterator::operator[] - std::ranges::concat_view::iterator::operator[]

Synopsis

constexpr decltype(auto) operator[]( difference_type pos ) const (since C++26) requires /*concat-is-random-access*/<Const, Views...>;

Returns a reference to an element at specified relative location.

Parameters

pos - position relative to current location

Return value

*((*this) + pos)

Example


This section is incomplete
Reason: no example

See also

operator* accesses the element (C++26) (public member function)

2026.11.10 http://cppreference.com